package br.com.wagnerfull.precoimovel.dao;

import java.util.Arrays;
import java.util.Collection;
import java.util.Map;

import android.content.ContentValues;

public abstract class EntidadeMobileEntity implements EntidadeMobile {

	/**
	 * 
	 */
	private static final long serialVersionUID = 5238481861057257917L;

	@Override
	public abstract Map<String, String> getMapeamento();

	@Override
	public String[] getColumns() {
		Map<String, String> mapeamento = getMapeamento();
		Collection<String> values = mapeamento.values();
		String[] stringArray = Arrays.copyOf(values.toArray(),
				values.toArray().length, String[].class);
		return stringArray;
	}

	@Override
	public abstract ContentValues getContentValues();

}
